import { _decorator, Component, Node, Vec3 } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('Rotate')
export class Rotate extends Component {
    start() {

    }

    update(deltaTime: number) {
        let euler = this.node.eulerAngles;
        this.node.eulerAngles = new Vec3(euler.x, 
            euler.y + 10, euler.z);
        //console.log('euler', this.node.eulerAngles);
    }
}


